package guo.mybatis.session;

import guo.mybatis.config.Configuration;
import guo.mybatis.executor.SimpleExecutor;

public class SqlSessionFactory {

	private Configuration configuration;

	public SqlSessionFactory(Configuration configuration) {
		this.configuration = configuration;
	}

	public SqlSession openSession() {
		return  new SimpleSqlSession(configuration,new SimpleExecutor(configuration));
	}

}
